package main

import (
	//外部包导入方式
	"fmt"
	log "github.com/xianlezheng/log4go/log4go"
)


/*
参考链接：
https://studygolang.com/articles/12537

*/

const (
	XML_FILE_PATH = "./log4go.xml"
)

func Init(){
	log.LoadConfiguration(XML_FILE_PATH)
}



func main() {
	fmt.Println("1程序日志....")
	log.Info("This is log4go Info logging")
	fmt.Println("2程序日志....")
}




